//
//  TRMYErWeiMaViewController.m
//  WeiMiLan
//
//  Created by Mac on 14-9-18.
//  Copyright (c) 2014年 Mac. All rights reserved.
//

#import "TRMYErWeiMaViewController.h"

@interface TRMYErWeiMaViewController ()

@end

@implementation TRMYErWeiMaViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    [self initNavigation];

}


- (void)initNavigation
{
    
//    self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"main_bg"]];
    self.view.backgroundColor = [UIColor whiteColor];
    [self.navigationController setNavigationBarHidden:YES animated:YES];
    self.weChatNavigationBar=[[WeChatNavigationBar alloc] init];
    [self.view addSubview:self.weChatNavigationBar];
    self.weChatNavigationBar.titleLabel.text=@"扫描二维码直接下载";
    //self.names=@[@"上传",@"最新动态",@"分享排行",@"收藏排行",@"下载排行",@"修改密码",@"切换用户",@"关于微米兰"];
    [self.weChatNavigationBar.rightButton setImage:nil forState:0];
    [self.weChatNavigationBar.leftButton addTarget:self action:@selector(gotoMainPage) forControlEvents:UIControlEventTouchUpInside];
    self.weChatNavigationBar.rightButton.hidden = YES;
    
}

-(void)gotoMainPage
{

    [self.navigationController popViewControllerAnimated:YES];
    [self dismissViewControllerAnimated:YES completion:nil];
}


@end
